//
//  MSCollectStoreCell.m
//  MSJD
//
//  Created by 箭军刘 on 2018/11/13.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import "MSCollectStoreCell.h"

#import "MSTypeBDetailView.h"

@interface MSCollectStoreCell()

@property (weak, nonatomic) IBOutlet UIView *showSuperView;

@property (nonatomic, strong) MSTypeBDetailView *detailView;

@end

@implementation MSCollectStoreCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    [self.showSuperView addSubview:self.detailView];
    [self.detailView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.offset(0);
        make.left.offset(11);
        make.right.offset(-11);
    }];
}

- (void)refreshCollectStoreCellWithModel:(MSFoodDetailData *)model {
    // 根据返回的数据来刷新控件
    [self.detailView setDetailData:model];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark - Getters

- (MSTypeBDetailView *)detailView {
    if (!_detailView) {
        _detailView = [[MSTypeBDetailView alloc] init];
    }
    return _detailView;
}

@end
